package com.ncf.jucai.accessmeter;

import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode
@ToString
public class Counter
{
    private int count = 0;

    public Counter() {}

    public Counter(int i)
    {
        this.count = i;
    }

    public void increase()
    {
        this.count++;
    }

    public int getCount()
    {
        return this.count;
    }

    public void plus(int i)
    {
        count += i;
    }
}
